import request from "@/utils/request";

// 获取护士列表
export function getNurses(params) {
  return request({
    url: "/nurses",
    method: "get",
    params,
  });
}

// 创建护士
export function createNurse(data) {
  return request({
    url: "/nurses",
    method: "post",
    data,
  });
}

// 更新护士信息
export function updateNurse(data) {
  return request({
    url: "/nurses",
    method: "put",
    data,
  });
}

// 删除护士
export function deleteNurse(id) {
  return request({
    url: `/nurses/${id}`,
    method: "delete",
  });
}

// 获取护士详情
export function getNurseDetail(id) {
  return request({
    url: `/nurses/${id}`,
    method: "get",
  });
}
